package com.jyxd.web.data.czform;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * CRRT治疗措施
 */

@Entity
@Table(name = "table_crrt_cure")
@Data
public class CRRTCure implements Serializable {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    /**
     * 治疗时间
     */
    @Column(name = "cure_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date cureTime;

    /**
     * 病情、护理措施及效果
     */
    @Column(name = "content",length = 1024)
    private String content;

    /**
     * 执行人
     */
    @Column(name = "operator")
    private String operator;

    /**
     * CRRT前评估信息表id
     */
    @Column(name = "crrt_assess_id")
    private String crrtAssessId;

    /**
     * 状态(0：禁用 1：启用 -1：删除)
     */
    @Column(name = "status")
    private Integer status;




}
